Home

Operator Usage

Name

and

Description

and(ket1, ket2)
returns |yes> if ket1 and ket2 are |yes>, |no> otherwise.
now implemented as: ( ket1 && ket2 ) 


Examples

and(|yes>, |yes>)
    |yes>

and(|yes>, |no>)
    |no>

and(|no>, |no>)
    |no>


See also

or, xor and:

Operator type

function 1, function 2